const mongoose = require("mongoose");

module.exports.getUsers = async () => {
    return await mongoose.model("usersModel").find();
}

module.exports.deleteUsersById = async usersId => {
    return await mongoose.model("usersModel").deleteOne(usersId);
}

module.exports.addUsers = async newUsers => {
    return await mongoose.model("usersModel").create(newUsers);
}
 
